package com.zhang.multition.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-02-28 18:53
 * To: 真常应物，真常得性，常清常静，常清静矣
 */
public class Minister {
    public static void main(String[] args) {
        int ministerNum = 10;
        for (int i = 0; i < ministerNum; i++) {
            Emperor emperor = Emperor.getInstance();
            System.out.println("第"+(i+1)+"个大臣参拜的是： ");
            emperor.emperorInfo();
        }
        System.out.println("============");
        // 大臣参拜指定的皇帝
        Emperor emperor11 = Emperor.getInstance(0);
        emperor11.emperorInfo();
    }
}
